package com.appistry.storage.util;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class FileLoader {
	public static String getText(String file) throws IOException {
		StringBuilder sb = new StringBuilder();
		BufferedReader in = new BufferedReader(new FileReader(file));
		
		String str;
		while ((str = in.readLine()) != null) {
			sb.append(str + "\n");
		}
		in.close();

		return sb.toString();
	}
}
